package com.beiding.v2.type;

public abstract class KeywordType {

    protected static KeywordType create(String text) {
        return new KeywordType(text) {

        };
    }

    public static final KeywordType select = create("select");
    public static final KeywordType where = create("where");
    public static final KeywordType on = create("on");
    public static final KeywordType from = create("from");

    public static final KeywordType as = create("as");

    //case 结构体
    public static final KeywordType caze = create("case");
    public static final KeywordType when = create("when");
    public static final KeywordType then = create("then");
    public static final KeywordType elze = create("else");
    public static final KeywordType end = create("end");

    public static final KeywordType join = create("join");
    public static final KeywordType leftJoin = create("left join");


    private String text;

    public KeywordType(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }
}
